package io.gitee.zhangbinhub.acp.boot

import io.gitee.zhangbinhub.acp.boot.component.BootLogAdapter
import io.gitee.zhangbinhub.acp.boot.constant.AcpCoreConstant
import io.gitee.zhangbinhub.acp.boot.log.LogAdapter
import org.noear.solon.annotation.Bean
import org.noear.solon.annotation.Condition
import org.noear.solon.annotation.Configuration

@Configuration
class AcpBootLogAutoConfiguration {
    @Bean
    @Condition(onMissingBean = LogAdapter::class, priority = AcpCoreConstant.LOG_COMPONENT_PRIORITY)
    fun logAdapter(): LogAdapter = BootLogAdapter()
}